import axios from '@/request'
import { queryParams } from '@/utils'

export function getGoodsCommentListApi(page, query = {}) {
  let q = queryParams(query, true)
  return axios.get(`/admin/goods_comment/${page}${q}`)
}

export function updateGoodsCommentStatusApi(id, status) {
  return axios.post(`/admin/goods_comment/${id}/update_status`, { status })
}

export function reviewGoodsCommentApi(id, data) {
  return axios.post(`/admin/goods_comment/review/${id}`, { data })
}